<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sdQuotationBean.id}"/>
		<f:event type="preRenderView" listener="#{sdQuotationBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="View Sd Quotation"/>

	<ui:define name="header">
		Sd Quotation
	</ui:define>

	<ui:define name="subheader">
		View existing Sd Quotation
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:panelGrid columnClasses="label,component,required" columns="3">
			<h:outputLabel for="sdQuotationBeanSdQuotationQtNo" value="Qt No:"/>
			<h:outputText id="sdQuotationBeanSdQuotationQtNo" value="#{sdQuotationBean.sdQuotation.qtNo}"/>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationSdQuotationStatus" value="Sd Quotation Status:"/>
			<h:link id="sdQuotationBeanSdQuotationSdQuotationStatus" outcome="/sdQuotationStatus/view" value="#{sdQuotationBean.sdQuotation.sdQuotationStatus}">
				<f:param name="id" value="#{sdQuotationBean.sdQuotation.sdQuotationStatus.qtStatusNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationSysTermOfPayment" value="Sys Term Of Payment:"/>
			<h:link id="sdQuotationBeanSdQuotationSysTermOfPayment" outcome="/sysTermOfPayment/view" value="#{sdQuotationBean.sdQuotation.sysTermOfPayment}">
				<f:param name="id" value="#{sdQuotationBean.sdQuotation.sysTermOfPayment.termOfPaymentNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationSdCust" value="Sd Cust:"/>
			<h:link id="sdQuotationBeanSdQuotationSdCust" outcome="/sdCust/view" value="#{sdQuotationBean.sdQuotation.sdCust}">
				<f:param name="id" value="#{sdQuotationBean.sdQuotation.sdCust.custNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationWfFlowTrans" value="Wf Flow Trans:"/>
			<h:link id="sdQuotationBeanSdQuotationWfFlowTrans" outcome="/wfFlowTrans/view" value="#{sdQuotationBean.sdQuotation.wfFlowTrans}">
				<f:param name="id" value="#{sdQuotationBean.sdQuotation.wfFlowTrans.ftNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationSdCustType" value="Sd Cust Type:"/>
			<h:link id="sdQuotationBeanSdQuotationSdCustType" outcome="/sdCustType/view" value="#{sdQuotationBean.sdQuotation.sdCustType}">
				<f:param name="id" value="#{sdQuotationBean.sdQuotation.sdCustType.custTypeNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationSysTitleName" value="Sys Title Name:"/>
			<h:link id="sdQuotationBeanSdQuotationSysTitleName" outcome="/sysTitleName/view" value="#{sdQuotationBean.sdQuotation.sysTitleName}">
				<f:param name="id" value="#{sdQuotationBean.sdQuotation.sysTitleName.titleNameNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationQtCode" value="Qt Code:"/>
			<h:outputText id="sdQuotationBeanSdQuotationQtCode" value="#{sdQuotationBean.sdQuotation.qtCode}"/>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationQtDescr" value="Qt Descr:"/>
			<h:outputText id="sdQuotationBeanSdQuotationQtDescr" value="#{sdQuotationBean.sdQuotation.qtDescr}"/>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationQtDate" value="Qt Date:"/>
			<h:outputText id="sdQuotationBeanSdQuotationQtDate" value="#{sdQuotationBean.sdQuotation.qtDate}">
				<f:convertDateTime type="date"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationQtRefCustPoNo" value="Qt Ref Cust Po No:"/>
			<h:outputText id="sdQuotationBeanSdQuotationQtRefCustPoNo" value="#{sdQuotationBean.sdQuotation.qtRefCustPoNo}"/>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationQtCustCode" value="Qt Cust Code:"/>
			<h:outputText id="sdQuotationBeanSdQuotationQtCustCode" value="#{sdQuotationBean.sdQuotation.qtCustCode}"/>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationQtCustFirstName" value="Qt Cust First Name:"/>
			<h:outputText id="sdQuotationBeanSdQuotationQtCustFirstName" value="#{sdQuotationBean.sdQuotation.qtCustFirstName}"/>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationQtCustMidName" value="Qt Cust Mid Name:"/>
			<h:outputText id="sdQuotationBeanSdQuotationQtCustMidName" value="#{sdQuotationBean.sdQuotation.qtCustMidName}"/>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationQtCustLastName" value="Qt Cust Last Name:"/>
			<h:outputText id="sdQuotationBeanSdQuotationQtCustLastName" value="#{sdQuotationBean.sdQuotation.qtCustLastName}"/>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationQtCustIdCardNo" value="Qt Cust Id Card No:"/>
			<h:outputText id="sdQuotationBeanSdQuotationQtCustIdCardNo" value="#{sdQuotationBean.sdQuotation.qtCustIdCardNo}"/>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationQtTermOfPaymentDescr" value="Qt Term Of Payment Descr:"/>
			<h:outputText id="sdQuotationBeanSdQuotationQtTermOfPaymentDescr" value="#{sdQuotationBean.sdQuotation.qtTermOfPaymentDescr}"/>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationQtDiscountPerc" value="Qt Discount Perc:"/>
			<h:outputText id="sdQuotationBeanSdQuotationQtDiscountPerc" value="#{sdQuotationBean.sdQuotation.qtDiscountPerc}"/>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationQtDiscountVal" value="Qt Discount Val:"/>
			<h:outputText id="sdQuotationBeanSdQuotationQtDiscountVal" value="#{sdQuotationBean.sdQuotation.qtDiscountVal}"/>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationQtDiscountTotal" value="Qt Discount Total:"/>
			<h:outputText id="sdQuotationBeanSdQuotationQtDiscountTotal" value="#{sdQuotationBean.sdQuotation.qtDiscountTotal}"/>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationQtStatusIncVat" value="Qt Status Inc Vat:"/>
			<h:outputText id="sdQuotationBeanSdQuotationQtStatusIncVat" value="#{sdQuotationBean.sdQuotation.qtStatusIncVat}"/>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationQtVatPercVal" value="Qt Vat Perc Val:"/>
			<h:outputText id="sdQuotationBeanSdQuotationQtVatPercVal" value="#{sdQuotationBean.sdQuotation.qtVatPercVal}"/>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationQtTotalPriceExcVat" value="Qt Total Price Exc Vat:"/>
			<h:outputText id="sdQuotationBeanSdQuotationQtTotalPriceExcVat" value="#{sdQuotationBean.sdQuotation.qtTotalPriceExcVat}"/>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationQtTotalVat" value="Qt Total Vat:"/>
			<h:outputText id="sdQuotationBeanSdQuotationQtTotalVat" value="#{sdQuotationBean.sdQuotation.qtTotalVat}"/>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationQtTotalPrice" value="Qt Total Price:"/>
			<h:outputText id="sdQuotationBeanSdQuotationQtTotalPrice" value="#{sdQuotationBean.sdQuotation.qtTotalPrice}"/>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationSdQuotationItems" value="Sd Quotation Items:"/>
			<h:dataTable id="sdQuotationBeanSdQuotationSdQuotationItems" styleClass="data-table" value="#{forgeview:asList(sdQuotationBean.sdQuotation.sdQuotationItems)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Qty"/>
					</f:facet>
					<h:link outcome="/sdQuotationItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemQtQty" value="#{_item.qtQty}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Ppu"/>
					</f:facet>
					<h:link outcome="/sdQuotationItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemQtPpu" value="#{_item.qtPpu}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Status Inc Vat"/>
					</f:facet>
					<h:link outcome="/sdQuotationItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemQtStatusIncVat" value="#{_item.qtStatusIncVat}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Vat Perc Val"/>
					</f:facet>
					<h:link outcome="/sdQuotationItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemQtVatPercVal" value="#{_item.qtVatPercVal}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Vat"/>
					</f:facet>
					<h:link outcome="/sdQuotationItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemQtVat" value="#{_item.qtVat}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationSdSaleOrders" value="Sd Sale Orders:"/>
			<h:dataTable id="sdQuotationBeanSdQuotationSdSaleOrders" styleClass="data-table" value="#{forgeview:asList(sdQuotationBean.sdQuotation.sdSaleOrders)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="So No"/>
					</f:facet>
					<h:link outcome="/sdSaleOrder/view">
						<f:param name="id" value="#{_item.soNo}"/>
						<h:outputText id="itemSoNo" value="#{_item.soNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Code"/>
					</f:facet>
					<h:link outcome="/sdSaleOrder/view">
						<f:param name="id" value="#{_item.soNo}"/>
						<h:outputText id="itemSoCode" value="#{_item.soCode}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Descr"/>
					</f:facet>
					<h:link outcome="/sdSaleOrder/view">
						<f:param name="id" value="#{_item.soNo}"/>
						<h:outputText id="itemSoDescr" value="#{_item.soDescr}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Date"/>
					</f:facet>
					<h:link outcome="/sdSaleOrder/view">
						<f:param name="id" value="#{_item.soNo}"/>
						<h:outputText id="itemSoDate" value="#{_item.soDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Discount Perc"/>
					</f:facet>
					<h:link outcome="/sdSaleOrder/view">
						<f:param name="id" value="#{_item.soNo}"/>
						<h:outputText id="itemSoDiscountPerc" value="#{_item.soDiscountPerc}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationSdQuotationCustContacts" value="Sd Quotation Cust Contacts:"/>
			<h:dataTable id="sdQuotationBeanSdQuotationSdQuotationCustContacts" styleClass="data-table" value="#{forgeview:asList(sdQuotationBean.sdQuotation.sdQuotationCustContacts)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Title Name"/>
					</f:facet>
					<h:link outcome="/sdQuotationCustContact/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSysTitleName" value="#{forgeview:display(_item.sysTitleName)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Cust Contact First Name"/>
					</f:facet>
					<h:link outcome="/sdQuotationCustContact/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemQtCustContactFirstName" value="#{_item.qtCustContactFirstName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Cust Contact Mid Name"/>
					</f:facet>
					<h:link outcome="/sdQuotationCustContact/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemQtCustContactMidName" value="#{_item.qtCustContactMidName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Cust Contact Last Name"/>
					</f:facet>
					<h:link outcome="/sdQuotationCustContact/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemQtCustContactLastName" value="#{_item.qtCustContactLastName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Cust Contact Phone No"/>
					</f:facet>
					<h:link outcome="/sdQuotationCustContact/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemQtCustContactPhoneNo" value="#{_item.qtCustContactPhoneNo}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sdQuotationBeanSdQuotationSdQuotationCustAddrs" value="Sd Quotation Cust Addrs:"/>
			<h:dataTable id="sdQuotationBeanSdQuotationSdQuotationCustAddrs" styleClass="data-table" value="#{forgeview:asList(sdQuotationBean.sdQuotation.sdQuotationCustAddrs)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Addr 01"/>
					</f:facet>
					<h:link outcome="/sdQuotationCustAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSysAddr01" value="#{forgeview:display(_item.sysAddr01)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Addr Type"/>
					</f:facet>
					<h:link outcome="/sdQuotationCustAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSysAddrType" value="#{forgeview:display(_item.sysAddrType)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Cust Addr No"/>
					</f:facet>
					<h:link outcome="/sdQuotationCustAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemQtCustAddrNo" value="#{_item.qtCustAddrNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Cust Addr Moo"/>
					</f:facet>
					<h:link outcome="/sdQuotationCustAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemQtCustAddrMoo" value="#{_item.qtCustAddrMoo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Cust Addr Soi"/>
					</f:facet>
					<h:link outcome="/sdQuotationCustAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemQtCustAddrSoi" value="#{_item.qtCustAddrSoi}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
		</h:panelGrid>

		<div class="buttons">
			<h:link value="View All" outcome="search" styleClass="btn btn-primary"/> 
			<h:link value="Edit" outcome="create" includeViewParams="true" styleClass="btn btn-primary"/>
			<h:link value="Create New" outcome="create" styleClass="btn btn-primary"/>
		</div>
	</ui:define>

</ui:composition>